<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<div id="content_right">
    <br />
    <br />

    <div>
        人员列表          <a href="/listAll.do">查询</a>    <a href="/addIndex">新增</a>
    </div>
    <br>
        <table border="1" cellspacing="10" cellpadding="0" >
            <tr >
                <th >
                    id
                </th>
                <th >
                    姓名
                </th>
                <th >
                    地址
                </th>
                <th >
                    手机号
                </th>
                <th >
                    Edit
                </th>
                <th >
                    Delete
                </th>
            </tr>
            <c:forEach items="${list}" var="user">
                <tr>
                    <td >
                            ${user.id}
                    </td>
                    <td >
                            ${user.name}
                    </td>
                    <td >
                            ${user.address}
                    </td>
                    <td >
                            ${user.phone}
                    </td>
                    <td >
                            <a href="${pageContext.request.contextPath}/findById/${user.id}">Edit</a>
                    </td>
                    <td >
                        <a href="${pageContext.request.contextPath}/delete/${user.id}">Delete</a>
                    </td>
                </tr>
            </c:forEach>
        </table>


    <br />
    <br />
</div>
</div>
</div>